package com.cavy.platform.server.repository;

import com.cavy.platform.server.domain.PluginRepositorySetting;

import java.io.IOException;
import java.util.List;

/**
 * Created by tangxu on 18-7-11.
 */
public interface PluginRepositorySettingRepository {
    void insert(PluginRepositorySetting convert) throws IOException;

    List<PluginRepositorySetting> getList();

    long countByName(String name);

    long countByCode(String code);

    void refresh() throws IOException;

    void delete(String name);
}
